package com.engine4cloud.tdf.supervision.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.engine4cloud.tdf.common.core.constant.enums.NormalAuditActionStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 经常性跨市县活动
 *
 * @author wenjie
 * @date 2024-04-11 10:22:38
 */
@Data
@TableName("sp_usual_out")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "经常性跨市县活动")
public class SpUsualOutEntity extends Model<SpUsualOutEntity> {

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private Long id;

    /**
     * 社区矫正人员编号
     */
    @Schema(description = "社区矫正人员编号")
    private String rybh;

    /**
     * 流程编号
     */
    @Schema(description = "流程编号")
    private String lcbh;

    /**
     * 申请时间
     */
    @Schema(description = "申请时间")
    private LocalDateTime sqsj;

    /**
     * 开始时间
     */
    @Schema(description = "开始时间")
    private LocalDate kssj;

    /**
     * 结束时间
     */
    @Schema(description = "结束时间")
    private LocalDate jssj;

    /**
     * 去往地所在省
     */
    @Schema(description = "去往地所在省")
    private String qwdszs;

    /**
     * 去往地所在省名称
     */
    @Schema(description = "去往地所在省名称")
    private String qwdszsmc;

    /**
     * 去往地所在市
     */
    @Schema(description = "去往地所在市")
    private String qwdszd;

    /**
     * 去往地所在市名称
     */
    @Schema(description = "去往地所在市名称")
    private String qwdszdmc;

    /**
     * 去往地所在县
     */
    @Schema(description = "去往地所在县")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String qwdszx;

    /**
     * 去往地所在县名称
     */
    @Schema(description = "去往地所在县名称")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String qwdszxmc;

    /**
     * 去往地所在乡镇
     */
    @Schema(description = "去往地所在乡镇")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String qwdxz;

    /**
     * 去往地所在乡镇名称
     */
    @Schema(description = "去往地所在乡镇名称")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String qwdxzmc;

    /**
     * 去往市县详细地址
     */
    @Schema(description = "去往市县详细地址明细")
    private String qwsxdzmx;

    /**
     * 理由
     */
    @Schema(description = "理由")
    private String ly;

    /**
     * 审核动作
     */
    @Schema(description = "审核动作")
    private NormalAuditActionStatusEnum preAction;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新人")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 是否删除
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "是否删除")
    private String delFlag;

    /**
     * 租户id
     */
    @Schema(description = "租户id")
    private Long tenantId;
}